<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="common/include :: header('添加养修服务项')" />
</head>
<body class="white-bg"	>
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-post-add" th:object="${busServiceItem}">
			<input type="hidden" name="id" th:value="*{id}">
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">流程名称：</label>
				<div class="col-sm-8">
					<input class="form-control" disabled type="text" th:field="*{name}" name="name" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">原价：</label>
				<div class="col-sm-8">
					<input class="form-control" disabled type="text" th:field="*{originalPrice}" name="originalPrice" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">折扣价：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" disabled th:field="*{discountPrice}" name="discountPrice"  required>
				</div>
			</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">审核人(店长)：</label>
						<div class="col-sm-8">
							<select name="shopOwnerId" class="form-control m-b" th:with="type=${shopOwners}">
								<option th:each="dict : ${type}" th:text="${dict.userName}" th:value="${dict.id}"></option>
							</select>
						</div>
					</div>
			<div class="form-group" th:if="${financials!=null}">
				<label class="col-sm-3 control-label">审核人(人事)：</label>
				<div class="col-sm-8">
					<select name="financialId" class="form-control m-b" th:with="type=${financials}">
						<option th:each="dict : ${type}" th:text="${dict.userName}" th:value="${dict.id}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注信息：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="info" class="form-control"></textarea>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="common/include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "/business/busServiceItem";
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/audit", $('#form-post-add').serialize());
	        }
	    }
	</script>
</body>
</html>
